<template>
	<view class="out">
		子组件的值：{{count}}
	</view>
</template>

<script setup>
import { ref } from 'vue';

const count = ref(100)

const update = function(){
	count.value++
}

defineExpose({
	count,
	name:"张三",
	update
})

</script>

<style lang="scss" scoped>
	.out {
		padding: 10px;
		background: #ccc;
	}
</style>